<?php declare(strict_types = 1);

// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information

namespace Elasticsearch\Examples\Docs\Sql\Endpoints;

use Elasticsearch\Examples\Docs\Testers\SimpleExamplesTester;

/**
 *
 * Class: Translate
 *
 * Date: 2019-08-06 06:59:53
 *
 * @source   sql/endpoints/translate.asciidoc
 * @category Elasticsearch\Examples\Docs
 * @license  http://www.apache.org/licenses/LICENSE-2.0 Apache2
 * @link     http://elastic.co
 *
 */
class Translate extends SimpleExamplesTester {

    /**
     * Tag:  8097472be12fcbe8652f03e398e49972
     * Line: 10
     * Date: 2019-08-06 06:59:53
     */
    public function testExampleL10_8097472be12fcbe8652f03e398e49972()
    {
        $client = $this->getClient();
        // tag::8097472be12fcbe8652f03e398e49972[]
        // TODO -- Implement Example
        // POST /_sql/translate
        // {
        //     "query": "SELECT * FROM library ORDER BY page_count DESC",
        //     "fetch_size": 10
        // }
        // end::8097472be12fcbe8652f03e398e49972[]

        $curl = 'POST /_sql/translate'
              . '{'
              . '    "query": "SELECT * FROM library ORDER BY page_count DESC",'
              . '    "fetch_size": 10'
              . '}';

        // TODO -- make assertion
    }

// %__METHOD__%


}
